// 封装后端交互请求
import { instance } from "@/utils/request";

// 新增留言
export const addMessageAPI = (messageForm) => {
    return instance({
        url: "/add",
        method: "post",
        data: messageForm
    })
}

// 获取留言列表
export const getMessageListAPI = () => {
    return instance({
        url: "/getlist",
        method: "get"
    })
}
